{
	dataobjectId = $1;
	nodeName = $2;
	
	if (currentNodeName != nodeName) {
		rank = 1;
		currentNodeName = nodeName;
	}
	
	print "UPDATE match SET rank=" rank " WHERE dataobjectID='" dataobjectId "' AND nodeName='" nodeName "';"
	rank++;
}


